package com.ffcc.fitness.trade.pojo.dto;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class TradeQueryParam {
    private Integer page = 1;
    private Integer pageSize = 10;
    private String equipmentName;
    private String equipmentType;
    private String conditionLevel;
    private BigDecimal minPrice;
    private BigDecimal maxPrice;
    private Long merchantId;
    private Long userId;
    private String status;
    private String sortBy;
    private String sortOrder;
    
    // 计算分页偏移量
    public Integer getOffset() {
        return (page - 1) * pageSize;
    }
}
